<?php 
$userRole = AuthComponent::user('role');
switch($userRole){
	case ROLE_AUTHOR:
	case ROLE_EDITOR:
		$tabLink = array(
		array(
			'label' => __('Dashboard'),
			'link' => array('controller'=>'users','action'=>'dashboard')
		),
		array(
			'label' => __('Manage articles'),
			'link' => array('controller'=> 'articles','action' => 'index'),
		));
		break;
	default:
		$tabLink = array();
}
echo '<ul class="nav">';
foreach($tabLink as $key => $tab){
	echo '<li ';
	if(isset($topmenuLinkActive) && ($key == $topmenuLinkActive)){
		echo ' class="active"';
	}
	echo '>';
	echo $this->Html->link($tab['label'],$tab['link']);
	echo '</li>';
}
echo '</ul>';
?>
